Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapting header rule to check for license type #6

Merged
merged 8 commits into from
Oct 17, 2024

Conversation

ctw-joao-luis
Copy link

@ctw-joao-luis ctw-joao-luis commented Oct 15, 2024

Adding a check for the type of repo license the header has and an error in case its missing.
Every project should have the repository license type defined on the eslintrc.yml from now on so lint can grab it from there.

Also changed the foxglove interfaces to Lichtblick ones and had to fix some formatting errors highlighted by lint

Tests and lint passed successfully

@ctw-joao-luis ctw-joao-luis marked this pull request as ready for review October 15, 2024 17:20
@laisspportugal
Copy link

laisspportugal commented Oct 16, 2024

Please mention also in the pr description that you took advantage of this to change foxglove to lichtblick in in the tslint library

@laisspportugal
Copy link

Just added some comments, please take a look

rules/license-header.test.ts Show resolved Hide resolved
rules/license-header.test.ts Outdated Show resolved Hide resolved
…but currently having issues with conflicts between tests
… that already, kept the new test that checks when the license and only the license is wrong
aneuwald-ctw
aneuwald-ctw previously approved these changes Oct 17, 2024
Copy link

@aneuwald-ctw aneuwald-ctw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good!

Copy link

@aneuwald-ctw aneuwald-ctw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job João!

@ctw-joao-luis ctw-joao-luis merged commit ad16efc into main Oct 17, 2024
1 check passed
@ctw-joao-luis ctw-joao-luis deleted the adapting-header-rule-to-check-for-license-type branch October 17, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants